#!/usr/bin/env gnuplot
#绘制串口接收的数据



set key
set grid


#plot \
#    "m.dat" \
#    using 1 w lp pt 5 title "速度",\
#    "m.dat" \
#    using 2 w lp pt 7 title "输出"


#set title "动镜PID参数调整效果分析"
#set xlabel "时间"
#set ylabel "幅值"
#plot \
#    "m.dat" using 1 w l title "速度",\
#    "m.dat" using 2 w l title "输出",\
#    "m.dat" using 3 w l title "过程", \
#    "m.dat" using 4 w l title "位移"


#set xlabel "时间"
#set ylabel "幅值"
#set title "光谱数据分析"
#plot \
#    "m.dat" using 1 w l title "光谱数据"


#set title "速度分析"
#set title "采样激光脉冲时间对应得到的脉冲频率"
#set xlabel "时间"
#set ylabel "激光脉冲频率"
#
#plot \
#    "m.dat" using 1 w l title "动镜速度"

#set title "脉冲时间分析"
#set title "激光脉冲来临时刻分析"
#set xlabel "同步于AD的相对时标"
#set ylabel "脉冲到来时间"
#
#plot \
#    "m.dat" using 1 w l title "脉冲来临时间"




set title "通用绘图"
set xlabel "x"
set ylabel "y"

plot \
    "m.dat" using 1 w l title "1"
    #"m.dat" using 2 w l title "2"

#quit
#pause 5 #等待4s
#refresh #刷新，重新绘制
#reread #读取数据显示
pause 200
exit
